import { createVNode } from "./vnode"

export function createAppAPI(render) {
  return (rootComponent) => {
    const app = {
      mount(container){ // 和平台无关的
        const vnode = createVNode(rootComponent)
        render(vnode,container)
      }
    }
    return app
  }
  
}